#include "videomerge.h"
#include "ui_videomerge.h"

VideoMerge::VideoMerge(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::VideoMerge)
{
    ui->setupUi(this);
}

VideoMerge::~VideoMerge()
{
    delete ui;
}

void VideoMerge::on_RecordStartTime_clicked()
{
    QFileDialog VideoFile(this, tr("Open File"));
    VideoFile.setAcceptMode(QFileDialog::AcceptOpen);
    VideoFile.setFileMode(QFileDialog::ExistingFile);
    VideoFile.setMimeTypeFilters({ "application/octet-stream", "video/x-msvideo", "video/mp4", "audio/mpeg", "audio/mp4" });
    if (VideoFile.exec() == QDialog::Accepted)
    {
        this->ui->plainTextEdit->setPlainText(VideoFile.selectedFiles().at(0));
        this->update();
        this->show();
    }
}

